<?php
return array(
    'validateCode' => array(
        'httpMethods' => 'GET',
        'pattern' => '/validate_code',
        'paths' => array(
            'controller' => 'Index',
            'action' => 'validateCode',
            'module' => 'form',
            'namespace' => 'Modules\Form\Controllers',
        ),
    ),
    'chosenSource' => array(
        'httpMethods' => 'GET',
        'pattern' => '/chosen_source/{id:([a-z_A-Z]{2,})}',
        'paths' => array(
            'controller' => 'Index',
            'action' => 'chosenSource',
            'module' => 'form',
            'namespace' => 'Modules\Form\Controllers',
        ),
    ),
    'autoinput' => array(
        'httpMethods' => 'GET',
        'pattern' => '/autoinput/{id:([a-z_A-Z]{2,})}',
        'paths' => array(
            'controller' => 'Index',
            'action' => 'autoinput',
            'module' => 'form',
            'namespace' => 'Modules\Form\Controllers',
        ),
    ),

    'functionValidation' => array(
        'httpMethods' => 'GET',
        'pattern' => '/function_validation/{callable:([a-zA-Z0-9]{2,})}',
        'paths' => array(
            'controller' => 'Index',
            'action' => 'functionValidation',
            'module' => 'form',
            'namespace' => 'Modules\Form\Controllers',
        ),
    ),
    'adminFormData' => array(
        'httpMethods' => null,
        'pattern' => '/' . ADMIN_PREFIX . '/form_data/{id:([a-zA-Z]{2,})}/{page:([1-9]{1}[0-9]{0,11})}',
        'paths' => array(
            'controller' => 'Admin',
            'module' => 'form',
            'action' => 'index',
            'namespace' => 'Modules\Form\Controllers',
        ),
    ),
    'adminFormDataDelete' => array(
        'httpMethods' => null,
        'pattern' => '/' . ADMIN_PREFIX . '/form_data_delete/{id:([0-9a-z]{25})}',
        'paths' => array(
            'controller' => 'Admin',
            'module' => 'form',
            'action' => 'delete',
            'namespace' => 'Modules\Form\Controllers',
        ),
    ),
);
